package consumer;

import api.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ConsumerMain {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext-consumer.xml");
        UserService userService = (UserService)applicationContext.getBean("userService");
        boolean logined = userService.login("阳台那个", "123456");
        System.out.println(logined);
//        System.in.read();
    }
}
